<template>
	<view>
		<u-cell-group>
			<u-cell v-for="(item,index) in noticeList" :title="item.name" :value="getStatus(item.status)" size="large" center
				url="/pages/work/rectifyFeedback/feedback" @click="viewDetail(item.id)"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	import {
		getCityNotice
	} from "@/api/supervise/work.js"
	export default {
		data() {
			return {
				noticeList:[]
			}
		},
		methods: {
			getStatus(status){
				if(status==0){
					return "已处理";
				}else if(status==1){
					return "审核中";
				}else if(status==2){
					return "未处理";
				}
				
			},
			viewDetail(noticeId){
				uni.setStorageSync("noticeId",noticeId)
				this.$tab.navigateTo("/pages/work/rectifyFeedback/feedback")
			}
		},
		onLoad() {
			let activityId = uni.getStorageSync("activityId");
			getCityNotice(activityId).then(res=>{
				console.log(res)
				this.noticeList = res.notice
			})
		}

		
	}
</script>

<style>

</style>